<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-08-08
 * Time: 15:29
 */

namespace App\Http\Controllers\Task;
use App\Http\Controllers\Controller;
use App\Model\Backstage\Customers;
use App\Model\Backstage\MoveRule;
use App\Model\Backstage\MoveRuleStatus;
use App\Model\Backstage\RoomInfo;
use App\Tool\Error;

/**
 * Class UpdateMoveRuleController
 * @package App\Http\Controllers\Task
 * 每天定时将公司是否更新规则改为否
 */
class UpdateMoveRuleController extends Controller
{
    public function updateStatus(){
        if(MoveRuleStatus::updateStatus()){
            echo '更新成功';
        }else{
            echo Error::EDIT_ERROR;
        }
        exit();
    }

}